<?php
$currentController = Zend_Controller_Front::getInstance()->getRequest()->getControllerName();
$currentAction = Zend_Controller_Front::getInstance()->getRequest()->getActionName();
$currentSelection = Zend_Controller_Front::getInstance()->getRequest()->getParam('selection');
?>
  	<div class="mainNav">
    	<ul class="firstLevel">
      	<li>
      	 <a class="cufon <?php if ($currentController === "sunsethours") { echo "selected"; }?>" href="<?php echo $this->url(array('controller' => 'sunsethours', 'action' => 'index'), 'default', true) ?>"><?php echo strtoupper($this->translatex('SH_SUNSET_HOUR')); ?></a>
          <ul class="secondLevel">
           <?php foreach ($this->menu("sunsethours") as $key => $value) { ?>
                <li><a href="<?php echo $this->url(array('controller' => 'sunsethours', 'action' => $key), 'default', true) ?>" <?php if ($currentAction === $key) { echo "class=\"selected\""; }?> ><?php echo $this->translatex($value); ?></a></li>
           <?php } ?>
          </ul>
      	</li>
      	<li>
      	 <a class="cufon <?php if ($currentController === "drinks") { echo "selected"; }?>" href="<?php echo $this->url(array('controller' => 'drinks', 'action' => 'index'), 'default', true) ?>"><?php echo strtoupper($this->translatex('SH_DRINKS')); ?></a>
          <ul class="secondLevel">
      <?php foreach ($this->menu("drinks") as $key => $value) { ?>
          	<li><a href="/drink/<?php echo $key ?>" <?php if ($currentSelection == $value['id']) { echo "class=\"selected\""; }?>><?php echo $value['name'] ?></a></li>
<!--          	<li><a href="<?php echo $this->url(array('controller' => 'drinks', 'action' => 'cocktails', 'selection' => $value), 'default', true) ?>" <?php if ($currentSelection == $value) { echo "class=\"selected\""; }?>><?php echo $key ?></a></li> -->
      <?php } ?> 
          </ul>
      	</li>
      	<li>
      	 <a class="cufon <?php if ($currentController === "aboutus") { echo "selected"; }?>" href="<?php echo $this->url(array('controller' => 'aboutus', 'action' => 'index'), 'default', true) ?>"><?php echo strtoupper($this->translatex('SH_ABOUT_US')); ?></a>
      	  <ul class="secondLevel">
          	<li><a href="<?php echo $this->url(array('controller' => 'aboutus', 'action' => 'elaboration'), 'default', true) ?>" <?php if ($currentAction === "elaboration") { echo "class=\"selected\""; }?>><?php echo $this->translatex('SECRET_BREADCRUMB_ELABORATION'); ?></a></li>
          	<li><a href="<?php echo $this->url(array('controller' => 'aboutus', 'action' => 'history'), 'default', true) ?>" <?php if ($currentAction === "history") { echo "class=\"selected\""; }?>><?php echo $this->translatex('PRODUCT_HISTORY'); ?></a></li>
          </ul>
      	</li>
      	<li><a class="cufon <?php if ($currentController === "collection") { echo "selected"; }?>" href="<?php echo $this->url(array('controller' => 'collection', 'action' => 'index'), 'default', true) ?>"><?php echo strtoupper($this->translatex('SH_COLLECTION')); ?></a>
      	  <ul class="secondLevel">
          	<li><a href="<?php echo $this->url(array('controller' => 'collection', 'action' => 'limitededition'), 'default', true) ?>" <?php if ($currentAction === "limitededition") { echo "class=\"selected\""; }?>><?php echo $this->translatex('SH_LIMITED_EDITION_BOTTLE'); ?></a></li>
      <?php foreach ($this->menu("collection") as $key => $value) { ?>
                <li><a href="/product/<?php echo $key ?>" <?php if ($currentSelection == $value['id']) { echo "class=\"selected\""; }?>><?php echo $value['name'] ?></a></li>
<!--                <li><a href="<?php echo $this->url(array('controller' => 'collection', 'action' => 'products', 'selection' => $value), 'default', true) ?>" <?php if ($currentSelection == $value) { echo "class=\"selected\""; }?>><?php echo $key ?></a></li> -->
      <?php } ?> 
          </ul>
      	</li>
      	<li><a class="cufon <?php if ($currentController === "gastronomy") { echo "selected"; }?>" href="<?php echo $this->url(array('controller' => 'gastronomy', 'action' => 'index'), 'default', true) ?>"><?php echo strtoupper($this->translatex('SH_GASTRONOMY')); ?></a>
          <ul class="secondLevel">

      <?php foreach ($this->menu("desserts") as $key => $value) { ?>
                <li><a href="/dessert/<?php echo $key ?>" <?php if ($currentSelection == $value['id']) { echo "class=\"selected\""; }?>><?php echo $value['name'] ?></a></li>
<!--         	<li><a href="<?php echo $this->url(array('controller' => 'gastronomy', 'action' => 'desserts', 'selection' => $value), 'default', true) ?>" <?php if ($currentSelection == $value) { echo "class=\"selected\""; }?>><?php echo $key ?></a></li>-->
      <?php } ?>
<!--
                <li><a href="<?php echo $this->url(array('controller' => 'gastronomy', 'action' => 'desserts'), 'default', true) ?>" <?php if ($currentAction === "desserts") { echo "class=\"selected\""; }?>><?php echo $this->translatex('DESSERT_DESSERTS'); ?></a></li>
-->
          	<li><a href="<?php echo $this->menu("cooktails") ?>" target="_blank"><?php echo $this->translatex('SH_COOKTAILS'); ?></a></li>
          </ul>
        </li>

        </ul>
    </div>